package com.service.admin.member.controller.req;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * <dl>
 * <dt>back-end</dt>
 * <dd>Description:</dd>
 * <dd>Copyright: Copyright (C) 2015</dd>
 * <dd>Company: </dd>
 * <dd>CreateDate: 2020年01月04日</dd>
 * </dl>
 *
 * @author
 */
@Data
public class ModifyMemberGradeReq {

    @NotNull(message = "会员id不能为空")
    private Integer memberId;

    @NotNull(message = "会员等级不能为空")
    @Min(value = 1, message = "会员等级最低为1")
    @Max(value = 8, message = "会员等级最高为8")
    private Integer grade;

}
